
IF ((NOT DAS_STBIMAGE_INCLUDED) AND (NOT ${DAS_STBIMAGE_DISABLED}))
    SET(DAS_STBIMAGE_INCLUDED TRUE)
    MESSAGE(STATUS "dasStbImage module included.")

	SET(DAS_STBIMAGE_DIR ${PROJECT_SOURCE_DIR}/modules/dasStbImage)

    LIST(APPEND CMAKE_MODULE_PATH ${DAS_STBIMAGE_DIR})

	# libDasModuleStbImage
	SET(DAS_STBIMAGE_MODULE_SRC
		${DAS_STBIMAGE_DIR}/src/dasStbImage.h
		${DAS_STBIMAGE_DIR}/src/dasStbImage.cpp
	)

	ADD_MODULE_CPP(StbImage)
	# ADD_MODULE_NATIVE(STBIMAGE_boost)
	ADD_MODULE_LIB(libDasModuleStbImage ${DAS_STBIMAGE_MODULE_SRC} ${DAS_STBIMAGE_MODULE_PLATFORM_SRC})
	TARGET_LINK_LIBRARIES(libDasModuleStbImage PUBLIC ${STBIMAGE_LIBRARIES})
	# ADD_DEPENDENCIES(libDasModuleStbImage)
	TARGET_INCLUDE_DIRECTORIES(libDasModuleStbImage PUBLIC ${STBIMAGE_INCLUDE_DIR})

	IF(NOT APPLE)
		IF((NOT ${DAS_SFML_DISABLED}) OR (NOT DEFINED DAS_SFML_DISABLED))
			TARGET_COMPILE_DEFINITIONS(libDasModuleStbImage PUBLIC -DSTB_IMPLEMENTATION_ALREADY_LINKED)
		ENDIF()
	ENDIF()

	SETUP_CPP11(libDasModuleStbImage)
ENDIF()
